﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="CNTVNow.Web.Helpers.ExtensionMethods" %>
<%@ Import Namespace="CNTVNow.Web.Helpers.ExtensionMethods" %>
<%@ Import Namespace="CNTVNow.Web.Models" %>
<%@ Import Namespace="CNTVNow.Web.Helpers.Common" %>
<%@ Import Namespace="System.Collections.Generic" %>

<ul class="ads01">
    <%if (ViewData["AdsRight"] != null)
      {
          var lstNews = (List<AdvertisementItem>)ViewData["AdsRight"];
          foreach (var ads in lstNews)
          {   
          %>
            <li><a href="<%=ads.Link%>"><img src="<%=ResolveUrl(ads.FileLink1)%>" alt="" height="352" width="235" /></a></li>
           <%
          }
      } %>
</ul>